package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoInformationCalligrapherPosition;
import com.muyu.danmo.mapper.DanmoInformationCalligrapherPositionMapper;
import com.muyu.danmo.service.IDanmoInformationCalligrapherPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 书法家职位Service业务层处理
 * 
 * @author yangle
 * @date 2024-11-13
 */
@Service
public class DanmoInformationCalligrapherPositionServiceImpl implements IDanmoInformationCalligrapherPositionService
{
    @Autowired
    private DanmoInformationCalligrapherPositionMapper danmoInformationCalligrapherPositionMapper;

    /**
     * 查询书法家职位
     * 
     * @param calligrapherPositionId 书法家职位主键
     * @return 书法家职位
     */
    @Override
    public DanmoInformationCalligrapherPosition selectDanmoInformationCalligrapherPositionByCalligrapherPositionId(Long calligrapherPositionId)
    {
        return danmoInformationCalligrapherPositionMapper.selectDanmoInformationCalligrapherPositionByCalligrapherPositionId(calligrapherPositionId);
    }

    /**
     * 查询书法家职位列表
     * 
     * @param danmoInformationCalligrapherPosition 书法家职位
     * @return 书法家职位
     */
    @Override
    public List<DanmoInformationCalligrapherPosition> selectDanmoInformationCalligrapherPositionList(DanmoInformationCalligrapherPosition danmoInformationCalligrapherPosition)
    {
        return danmoInformationCalligrapherPositionMapper.selectDanmoInformationCalligrapherPositionList(danmoInformationCalligrapherPosition);
    }

    /**
     * 新增书法家职位
     * 
     * @param danmoInformationCalligrapherPosition 书法家职位
     * @return 结果
     */
    @Override
    public int insertDanmoInformationCalligrapherPosition(DanmoInformationCalligrapherPosition danmoInformationCalligrapherPosition)
    {
        return danmoInformationCalligrapherPositionMapper.insertDanmoInformationCalligrapherPosition(danmoInformationCalligrapherPosition);
    }

    /**
     * 修改书法家职位
     * 
     * @param danmoInformationCalligrapherPosition 书法家职位
     * @return 结果
     */
    @Override
    public int updateDanmoInformationCalligrapherPosition(DanmoInformationCalligrapherPosition danmoInformationCalligrapherPosition)
    {
        return danmoInformationCalligrapherPositionMapper.updateDanmoInformationCalligrapherPosition(danmoInformationCalligrapherPosition);
    }

    /**
     * 批量删除书法家职位
     * 
     * @param calligrapherPositionIds 需要删除的书法家职位主键
     * @return 结果
     */
    @Override
    public int deleteDanmoInformationCalligrapherPositionByCalligrapherPositionIds(Long[] calligrapherPositionIds)
    {
        return danmoInformationCalligrapherPositionMapper.deleteDanmoInformationCalligrapherPositionByCalligrapherPositionIds(calligrapherPositionIds);
    }

    /**
     * 删除书法家职位信息
     * 
     * @param calligrapherPositionId 书法家职位主键
     * @return 结果
     */
    @Override
    public int deleteDanmoInformationCalligrapherPositionByCalligrapherPositionId(Long calligrapherPositionId)
    {
        return danmoInformationCalligrapherPositionMapper.deleteDanmoInformationCalligrapherPositionByCalligrapherPositionId(calligrapherPositionId);
    }
}
